﻿<AVUIExtension:TransitioningPage
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:AVUIExtension="clr-namespace:AVUIExtension;assembly=TransitioningWindow"
	x:Name="Page"
	WindowTitle="Page"
	FlowDirection="LeftToRight"
	MinWidth="640" MinHeight="480"
	Background="#FF000000">
	
	<AVUIExtension:TransitioningPage.Resources>
		<Storyboard x:Key="OnTransitionIn1">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="OnTransitionOut1">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="LayoutRoot" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="00:00:00.5000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="OnTransitionIn2"/>
	</AVUIExtension:TransitioningPage.Resources>
	<AVUIExtension:TransitioningPage.Triggers>
		<EventTrigger RoutedEvent="AVUIExtension:TransitioningPage.TransitionIn">
			<BeginStoryboard Storyboard="{StaticResource OnTransitionIn1}" x:Name="OnTransitionIn2_BeginStoryboard"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="AVUIExtension:TransitioningPage.TransitionOut">
			<BeginStoryboard x:Name="OnTransitionOut1_BeginStoryboard" Storyboard="{StaticResource OnTransitionOut1}"/>
		</EventTrigger>
	</AVUIExtension:TransitioningPage.Triggers>
	

	<Grid x:Name="LayoutRoot">
		<Grid.Resources>
			<Style x:Key="ImageButton" TargetType="{x:Type AVUIExtension:NavButton}">
				<Setter Property="Template">
					<Setter.Value>
						<ControlTemplate TargetType="{x:Type AVUIExtension:NavButton}">
							<ContentPresenter />
						</ControlTemplate>
					</Setter.Value>
				</Setter>
				
				<Setter Property="Opacity" Value="0.7" />
				<Style.Triggers>
					<Trigger Property="IsEnabled" Value="false">
						<Setter Property="Opacity" Value="0.2" />
					</Trigger>
					<Trigger Property="IsMouseOver" Value="true">
						<Setter Property="Opacity" Value="1.0" />
					</Trigger>					
				</Style.Triggers>
			</Style>
		</Grid.Resources>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="95.2"/>
			<ColumnDefinition Width="0.513*"/>
			<ColumnDefinition Width="0.487*"/>
			<ColumnDefinition Width="95.885"/>
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="51.83"/>
			<RowDefinition Height="0.477*"/>
			<RowDefinition Height="0.523*"/>
			<RowDefinition Height="59.04"/>
		</Grid.RowDefinitions>
		<AVUIExtension:NavButton Style="{StaticResource ImageButton}" FontFamily="Swiss911 XCm BT" FontSize="24" Margin="8,8,8,8" Grid.Column="1" Grid.Row="1" NavigateUri="InGame.xaml" x:Name="RomTeam">
			<Image Source="/ui/Rom-logo.png" />
		</AVUIExtension:NavButton>
		<AVUIExtension:NavButton Style="{StaticResource ImageButton}" FontFamily="Swiss911 XCm BT" FontSize="24" Margin="8,8,8,8" Grid.Column="2" Grid.Row="1" NavigateUri="InGame.xaml" x:Name="KliTeam">
			<Image Source="/ui/Kli-logo.png" />
		</AVUIExtension:NavButton>
				
		<AVUIExtension:NavButton Style="{StaticResource ImageButton}" Margin="8,8,8,8" FontFamily="Swiss911 XCm BT" FontSize="24" Grid.Column="1" Grid.Row="2" NavigateUri="InGame.xaml" x:Name="FedTeam">
			<Image Source="/ui/Fed-logo.png" />
		</AVUIExtension:NavButton>
		
		<AVUIExtension:NavButton Style="{StaticResource ImageButton}" Margin="8,8,8,8" FontFamily="Swiss911 XCm BT" FontSize="24" Grid.Column="2" Grid.Row="2" NavigateUri="InGame.xaml" x:Name="OriTeam">
			<Image Source="/ui/Ori-logo.png" />		
		</AVUIExtension:NavButton>
	</Grid>
</AVUIExtension:TransitioningPage>